﻿using System;
using System.Collections;
using System.Configuration;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

namespace Jy123.Web.Manage.User.Gift
{
    public partial class Class : MgConfig//System.Web.UI.Page
    {
        Jy123.BLL.Public_GiftClass bllGClass = new Jy123.BLL.Public_GiftClass();            

        protected void Page_Load(object sender, EventArgs e)
        {
            Verify("Class.aspx");
        }

        protected void btnAlterClass_Click(object sender, EventArgs e)
        {
            if (Page.IsValid)
            { 
                Jy123.Model.Public_GiftClass modelGClass = new Jy123.Model.Public_GiftClass();            
                modelGClass.GiftClassName = this.ClassName.Text;
                if (bllGClass.Add(modelGClass) > 0)
                {
                    Response.Redirect("Class.aspx");
                }
            }
            
        }
    }
}
